<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery-3.3.1.js"></script>
</head>

<body>
    <div class="container">
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
    </div>
</body>

</html>
<script>
    $(() => {

        function harmTime() {

            $('.circle').each(function () {
                let width = 50
                let randomRadius1 = Math.floor(Math.random() * width)
                let randomRadius2 = Math.floor(Math.random() * width)
                let randomRadius3 = Math.floor(Math.random() * width)
                let randomRadius4 = Math.floor(Math.random() * width)
                $(this).css('border-radius', `${randomRadius1}px ${randomRadius2}px ${randomRadius3}px ${randomRadius4}px`)


                let rgb1 = Math.floor(Math.random() * 255)
                let rgb2 = Math.floor(Math.random() * 255)
                let rgb3 = Math.floor(Math.random() * 255)
                $(this).css('background-color', `rgb(${rgb1},${rgb2},${rgb3})`)

                let rgb4 = Math.floor(Math.random() * 255)
                let rgb5 = Math.floor(Math.random() * 255)
                let rgb6 = Math.floor(Math.random() * 255)
                $(this).css('border-color', `rgb(${rgb4},${rgb5},${rgb6})`)
            })
        }

        setInterval(() => {
            harmTime()
        }, 100)


    })

</script>

<style>
    body {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: black;
    }

    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 400px;
    }

    .circle {
        width: 40px;
        height: 40px;
        margin: 3px;
        background-color: rgb(0, 0, 0);
        border-radius: 80px 50px 50px 50px;
        /* border-width: 2px; */
        /* border: solid; */
        transform: rotate(15deg);
        transition: .3s;
        box-shadow: 0 0 1px red;
    }
</style>